package com.mcxx.common.exception;

import com.mcxx.util.FailureCode;
import com.yinhai.ta404.core.exception.AppException;


public class BizException extends AppException {

    private String errCode;

    public BizException(String errorMessage) {
        super(errorMessage);
    }


    public BizException(String errCode, String errorMessage) {
        super(errorMessage);
        this.errCode=errCode;
    }


    public BizException(FailureCode failureCode) {
        super(failureCode.getMessage());
        this.errCode = failureCode.getCode();
    }


    public BizException(Exception exception) {
        super(exception);
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }
}
